import request from '@/utils/request'

// 查询t3订单明细列表
export function listBiOrder(query) {
  return request({
    url: '/product/BiOrder/list',
    method: 'get',
    params: query
  })
}

// 查询t3订单明细详细
export function getBiOrder(id) {
  return request({
    url: '/product/BiOrder/' + id,
    method: 'get'
  })
}

// 新增t3订单明细
export function addBiOrder(data) {
  return request({
    url: '/product/BiOrder',
    method: 'post',
    data: data
  })
}
// 新增t3订单明细
export function refreshCache(data) {
  return request({
    url: '/product/BiOrder/addByDate',
    method: 'post',
    params: data
  })
}
// 修改t3订单明细
export function updateBiOrder(data) {
  return request({
    url: '/product/BiOrder',
    method: 'put',
    data: data
  })
}

// 删除t3订单明细
export function delBiOrder(id) {
  return request({
    url: '/product/BiOrder/' + id,
    method: 'delete'
  })
}
